package net.chenyan.server.specs;/**
 * @author chenyan
 * @createTime 2022/4/26 16:45
 * @description description
 */

/**
 *@description: TODO
 *@author: chenyan
 *@create: 2022/4/26 16:45
 */
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

@NoRepositoryBean
public interface CustomRepository<T, ID extends Serializable> extends JpaRepository<T, ID> ,JpaSpecificationExecutor<T> {

    Page<T> findByAuto(T example, Pageable pageable);

}
